<?php
	include_once("login.php");
	
	$conn = new mysqli($host,$user,$passwd, $database)
	or die("SQL connect error: ".mysqli_connect_error());
	
	$username = $_REQUEST["username"];
	$query = "SELECT username, hashedPassword, salt, id FROM user WHERE username='$username'";
	//print $query;
	$result = mysqli_query($conn, $query);
	while($row = mysqli_fetch_array($result))
	{
		echo $row['username'] . "\n";
		echo $row['hashedPassword'] . "\n";
		echo $row['salt'] . "\n";
		echo $row['id'];
	}
	mysqli_close($conn);
?>